PluginButtonSetter : ControlValueSetter{

	var initialStates;

	init{|ctrlArg|
		super.init(ctrlArg);
		initialStates = ctrlArg.states;
	}

	setValue{|value|
		
		if(
			value == true,
			{
				"setting to true".postln;
				ctrl.states = [
					[ctrl.states[0][0],ctrl.states[0][1], RippleGuiConstants.getHeaderBarColor]
				];
			
			},
			{
				ctrl.states = initialStates;
			}
		);
		
		{ctrl.refresh}.defer;
	
	}
}